home *** CD-ROM | disk | FTP | other *** search
- var err = initInstall("tooltipenh", "tooltipenh", "0.4.1");
- var programInst=false
-
- if (File.exists(getFolder("chrome","tooltipenh.jar")))
- programInst=true;
- else
- { isInProfile=File.exists(getFolder(getFolder("Profile","chrome"),"tooltipenh.jar"));
- if (!isInProfile && !File.exists(getFolder("chrome","browser.jar")))
- programInst=confirm("OK to install into program folder\n\nCancel to install into profile folder");
- }
-
- if (programInst)
- { cFolder=getFolder("chrome");
- target=DELAYED_CHROME;
- }
-
- else
- { cFolder=getFolder("Profile","chrome");
- target=PROFILE_CHROME;
- }
-
- addFile("Tooltip Enhancer","chrome/tooltipenh.jar",cFolder,"");
- registerChrome(CONTENT | target, getFolder(cFolder,"tooltipenh.jar"), "content/");
-
- if (err==SUCCESS)
- performInstall();
- else
- cancelInstall();